package com.cyber4aiagent.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * @author Cyber
 * @date 2025/05/09 11:12
 * @description 持久化聊天记忆的记录实体类
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
@Document("chat_messages")
public class ChatMessages {

    /**
     * 唯一标识，映射到 MongoDB 文档的 _id 字段
     */
    @Id
    private ObjectId messageId;

    /**
     * 聊天记忆的ID
     */
    private int memoryId;

    /**
     * 存储当前聊天记录列表的json字符串
     */
    private String content;
}
